/**
 * Created by Forcs on 16/4/10.
 */

var model = require('../db/Model');
module.exports = model.create('OrderEveryday', {
  request: {
    type: Number,
    default: 0
  },
  done: {
    type: Number,
    default: 0
  },
  date: String,
  flavors: [
    {
      id: String,
      request: {
        type: Number,
        default: 0
      },
      done: {
        type: Number,
        default: 0
      }
    }
  ],
  products: [
    {
      id: String,
      name: String,
      request: {
        type: Number,
        default: 0
      },
      done: {
        type: Number,
        default: 0
      }
    }
  ],
  subjects: [
    {
      id: String,
      name: String,
      type: String,
      price: Number,
      owner: String,
      request: {
        type: Number,
        default: 0
      },
      done: {
        type: Number,
        default: 0
      }
    }
  ],
  payments: [
    {
      id: String,
      name: String,
      request: {
        type: Number,
        default: 0
      },
      done: {
        type: Number,
        default: 0
      }
    }
  ]
});